package com.slz3.business.module.socialManagement.socArticle.service;

import com.slz3.business.module.socialManagement.socArticle.domain.SocArticle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface SocArticleService {

    SocArticle save(SocArticle socArticle);

    Page<SocArticle> page(MultiValueMap<String,String> queryParams);

    SocArticle modify(SocArticle socArticle);

    Optional<SocArticle> single(UUID uuid);

    List<SocArticle> findAllByUuids(Iterable<UUID> uuids);

    List<SocArticle> delete(List<SocArticle> socArticleList);

}
